//
//  JsonClass.m
//  Mecca
//
//  Created by Ryan Enguero on 5/20/14.
//  Copyright (c) 2014 TapDash Heuristics. All rights reserved.
//

#import "JsonClass.h"

@implementation JsonClass

+(id)jsonParser:(NSData*)data{
    
    NSError* error = [[NSError alloc] init];
    JsonClass* json = [NSJSONSerialization
                  JSONObjectWithData:data
                  options:kNilOptions
                  error:&error];
    
    if (!error) {
        NSLog(@"Error %@", [error localizedDescription]);
    } else {
        return json;
    }
    
    return json;

}

@end
